fixed image compression issue