change focus on open new image tab
some minor test or change nothing important
some minor changes by QtCreator
paint on each tab works correctly now