avcodec/jpeg2000dec: Use av_image_check_size2()