Added constructor for sdl impl