Fixed bug where Loop Select could not recognize KImage

Methods that receive KImage will either return 0 or null. Loop Select
for KImage to be implemented.
Merge branch 'master' of https://github.com/loosihong/ksketch2