Added justified image blitting and rewrote code structure for display.