{Jpeg,Png}Importer: fix tests on ES2.