check supported device and validate img size