image path chomp trailing slash