use canvas get image's edge