texgetimage: Add check for the effective target to GetTextureSubImage