add picture dimensions to database