Adding thumbnail choose function