Fix EZP-22516: import broken image using PAPI leavs inconsistent data in the db

This PR resolves issue https://jira.ez.no/browse/EZP-22516

Field type validation unit tests are implemented for field types that support validation.
Image field type validation is amended to check that file is valid image.
This is done in simplest possible way, something more would need proper story with requirements.