Lightweight library for reading pixels from an image