Compress layout images