add thumbnail upload
fix bitmap index problem
notify metadata
add check for thumbnail and metadata
polish upload thumbnail
Merge pull request #526 from LipuFei/metadata-thumb-dialog

add thumbnail upload dialog