[#440] Throw an exception if mandatory fields width and height are not defined