abstracting binary table and compressed image classes