fix buggy tile_image_rotation()