Adds image rotation to directive