fixing bug in imageTag