Don't use quality=keep when original image is not a JPEG or when quantization table is invalid
Fixes issues with GraphicsMagick and gif images. Fixes #163.
Correctly call engine's paste method (fixes #273)