Optimised the text locations and added code to plot multiple images per page