Add auto-detection of payload type

update docs and error messages
use png extension of files, since they are
don't create image files by default
use input filename for image files

Change-Id: I3e9c31a1de02976432d3f39cf82b5403055d620a
1 file changed