Added image metedata parsing

Also honour content encoding