Adjusted the oreder of images