Image resize script for Galleria.io Javascript image gallery framework