reduce unneeded work in image_rgba