Added filepath option to the maskImage