Only image solved

Solved the only image problem and added accept type to input file