take images path as argument