click to add uploaded image file. part 1
fix crash and other things wip