changes for handling non-standard image tag locations