cpp: tiff: Add Sentry error fallback

Allow provision of useful messages for the cases where libtiff
doesn't provide a useful error message.
cpp: IFD: Add getters and setters for PixelType

These are convienience functions which map SampleFormat and
BitsPerSample to and from the PixelType enum.
cpp: IFD: Add skeleton implementation for image reading and writing