API mode

having trouble with receiving image