Support jpeg and jpeg 2000