deleting pictures is now a function