Added auto-gen input image
Try/Catch prevent crash on error