implemented image loader, basic preprocessor and tests for those