Introduced image type which is also now checked.