Added onImgClick option, updated to version 0.7