added a static createPicture method and used it to implement the create patient page