avcodec/tiff: Fix integer overflows in left shift in init_image()