fixing image validator