Creating pictures model in database