added image validator