r300: move to common texture_image object