"irritated by the look" does not constitute a bug.
there _is_ a difference between the two.
In the first one, you have the following validation:
a file is required
the extension must a gif, jpeg, jpg or png
the size must be less then 500000 bytes
the width must be less then 50
the height must be less than 50
the second one you are not validating the width or the height, but both work. no bug.
Please, when reporting a problem, include specific details on what exactly the problem is. If the "look of the code is irritating" you, include that info, also include what specifically irritates you about it.