If height and width in metadata can not be read properly we assign default values now