image verification

like in django ImageField https://github.com/django/django/blob/master/django/forms/fields.py#L643