Bug fix for img-tag.js