Handled graphics device reset for 3D elements

Seems like it needs to be handled for 2D elements as well!