Added boolean variable for if a image is used as image/small_image/thumbnail and also if it is marked as excluded.