writing hsb and google api url to image