image and type class and attributes