Align images to center of rect