added resize functionality in SDL frontend