some refactoring
do not add the context path twice to image src