Single pixel optical imaging using a scanning MEMS mirror