replace fileExist-check, change from png-jpg