Initial code for JPEG parsing
Minor changes to PNG