Update photogroup.js

Added resizing functionality.