Refactored functionality out of PhotoLayerView. Added more photo-tags support.