Moves main image into template