moved image types allowed to prop file and injected