correcting vertical image size