Implement the class for reading bitmap images.