Handling new types.

JPG and PNG.