Remove unused functions and add more test coverage

yeah it is. number of pixels is image shape. pixel size is the size of the pixels