image class and patch extract/recon