move images to the right place