Checking image size and format in the user form, and resize it to its good final size and format. Fixes #8 . Needs to be propagated to the models Brand and BrandOwner.