Edge detection and image loading done