auto resize posted images in thesis