make initial changes in refactor
minor refactor
add and implement graphicsmagick
hotfix handleError
add error handler to GraphicsMagick write
resize more precisely
make resizing more imprecise
fix bug when width or height are not numbers
fix error message formatting
implement crop parameter for cropping images
fix bug when cropping with only height
minor code cleanup
ready to test on a server