Fixed issue on selecting current image on some browsers