replace $http service to Database service. add save png support in firefox