if (gravity > 0) image_angle = direction - 90;