Added ability for user defined path for images