fixed bug in gui image loading

it now works with adding more than one piece with the same image to the
board, so main now works with it (minor change)