fix bug: imageIdx was not updated when image switched
Merge branch 'master' into deletepost
use deleteposttask to delete post