Adding image compression support