changes made to action and gui to support imagepath