Rewrote the script parsing which translates script code into compilable script code.

Added a wrapper class around BufferedImage.