added a hack for saving camera images