Extended original onCommit function, rather than overwrite it.
use the correct url for downloading media.