Implements graphics_duplicate_texture