use JPEG compression to store instances of class Form as code