Added JPG support to Image#toBuffer