Ability to cache images when using https
remove dbeug code