WIP: convert to and from the image formats of different Perl packages