JPEG-2000 Part-1 codec implementation