moves images to images directory, sets require call to be inline