add  switch for camera or gallery