Added basic image processing
Fixed contours and added small functionality extras
Fixed memory errors and added pic rotate logic