small fix in code for old image tag