create picture model in the database