Fixed image drawing and properly implemented double buffering