Delete the picture instances when a page is deleted and fix create page to match new model structure