Added single image processing and other stuff