added script to calculate sizes for photos in the background