add image width/height ratio