Compress and optimize images