basic ImageCompressor implementation working