Creating picture model in database