make sure height and width are set before validation

## Status: ready to merge

Responsible: Andre Orvalho
Reported: Andre Orvalho
Relevant to: validations

This makes sure the height and width are added before validations and that the tests are working with it.