Distinguishing Between JPG and PNG