pulling image paths from database, need to sort out nesting callbacks