Fix validation for blank id and thumbnail url.
Handle invalid images in factory.