Do some processing before submission

Add a call to the preSubmit function when submitting the form without
cropping support.