One thing I'd say is if it doesn't have to be super fast, make a function getBootImg that returns the structure. That way the image will stay in flash, but will only be loaded into RAM just in time to be displayed and will then be unloaded again.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wow, I'm surprised that kills your memory.
One thing I'd say is if it doesn't have to be super fast, make a function
getBootImg
that returns the structure. That way the image will stay in flash, but will only be loaded into RAM just in time to be displayed and will then be unloaded again.