Fix handling not existent images with ImageMagick

Execution dies if ImageMagick can't load an image: let's return false if we can't load/process the image (plus let's free GD handles).