Updated "newdevice()" and "drawImage()" functions.