Modifications and Updates to JPEG2000-handling code