Adding draft version of image size validation

Working in a possible way to validate the size of the images selected by
the user.
This version will need more tweaks.