mongo configuration + simple image respository and document