Help please i cant fix this program error

I Cannot fix this program error and i can’t play my game bc program error: null is not an object evaluating img width here is a link in Java code there is a giant mess but not in block https://arcade.makecode.com/S67326-02387-81003-29766