Set the entity hash when getting an image URL. This was causing an issue
when an image was the first thing requested on page via dispatcher