added graphicsmagick (gm) and adjusted the form to resize resulting images