Moved src and href handling into initializer. This was needed in order to allow for the processing to be done
and the tests to work. The href needs to be resolved before passing it to the model.