added the possibility to remove a recorded image