commit before MediaStore
use media store for thumbnail
try to enlarge the ram cache