Refactor code to reduce code duplication across the two programs.
Fetch function now accepts width/height parameters, which must be 16 for now. Next I'm going to implement resizing to the specified width height.