Limit the width/height of the preview image to be uploaded.