added adjustable border width and color to img_tile()
added Data class
This abstraction allows the training module to handle training data in a
generic manner without knowing about the form of the actual data.