Java project taking input as a JPEG file and outputting an ASCII image