Updated code to work with Images being in the IMG Namespace.