Added image metedata parsing

Also improved (=fixed) url parsing again and now taking content encoding into account