fixed IMAGES_SHAPE bug