fixed incorrect image name parsing