swapping paths for image constructor