Added basic support for different color depths and some conversions when
necessary (i.e. for taking the difference between frames).
Added new module containing miscellaneous functions.