parsing image stream into command to send to device and new presets