Still need to refactor module resolution; added pixel types and generic exportPixels function