Turn Gen2 and Image into classes
Move image_db to db/image_metadata
Refactor/organise everything into clearly responsible classes