creating picture model in database