Fix image decompression/resizing