Added a check to see if the image can be processed, ANd a git ignore
Removed debug stuff