added 320x240 support and rewriting the module for update buffer & display