Subsampling in image class