fix a bug in imagetask - update database to complete
test imagetask finishes
Merge remote-tracking branch 'origin/master'