added validations and tests for height and width

## Status: ready to merge

Responsible: Andre Orvalho
Reported: Andre Orvalho
Relevant to: validations

This makes sure that an image has a width and height, by adding validations.

it also adds tests to it!