Fixed type problem when watermarking images

Fixes issue #2