Properly using local copy of image