formatting for inputs;  added image criteria