Guess content type and extension.
NEW - # 658: Use adaptive image resizing for normal (product view) &
large (zoomed)  https://bitbucket.org/bippo/bippo-commerce5/issue/658/