Added delete frame functionality, cannot delete if there is only one frame left.