bug fix for final image location