image writing class for renderer