fix bug: tag update
add new image info to db
complete basic function