Avoid squashing images during encoding