Fix image mapping to raphael element. Closes #117.wq