drisw: use getImageShm() if available