order images to the proper way.