add magic number to check the image is valid (support only jpg)
move const for command to separate file for linux and windows(dummy call to echo)