Update photogroup.js

Added getScale function to always get the correct scale for containers of varying width and height ratios.