raise error when image path doesnt exist