convert image raw data to png