This "practices" does not work. There were several experiments published, that lead to this conclusion.
Google always takes the first alt / anchor text, no matter if it is nofollow / dofollow.
A workaround is to switch the positions in the source code. (first the textlink and than the imagelink). In most cases this is possible (css -> float) without changing the "optical" order on the page.