Add toBytes method to image.