optimize images for picture library.