Improved ImageDecompression implementation