Add resize functionality to Marker subclasses

Implemented proper recalculation of bounds for WarningMarker and ErrorMarker class.