Changed it so instead of using a photo_max_width setting you use a containing element setting