give a type to `getPixelData()`
line up dragevent functions
update build file