fix validator if file is not image