Updated getIcon method for orientation