Implements graphics_replace_alpha_from_texture