You’ve changed the behaviour with your first change. It used ot open the link in a new window, and by removing the target you broke that behaviour. You can work around this with javascript or CSS3 in compliant browers using the target-name, target-new, target-position css styles.

You should also use your alt text to describe to a visually impaired user what your image actually represents rather than an empty string.