Now executes callback after generating data URL.

Change-Id: I58192a41a4389c72f87629fb3b3b6dcb0d517333