some refactoring around the tests
fileUtils.processFile for storing new images
Replace personal mocks with more mature framework

In order to reduce the setup size of the tests