images should be pushed only when html is requested