Changed sprite_get_texture to return image_index for negative values