Let an instance_methods.include? call work for both Ruby 1.8 and 1.9
Write the image with the binary flag on for encoding purposes