Converting the bitmap to a URI wasn't necessary after all.