Fixed problem with invalid Image refs.