Abstracted BufferedImage to MooseImage container with offset and height ...

...data, added logic for different endpoint code paths