Fix open gzipped images