Create an upload widget that can check and restrict dimensions of the image files.