Fix image enabling/disabling

given the rename of src to xsrc, I assume this is the intended behaviour.