1. Add structure for getting image data from db in main page