adding class that decides image orientation