setup_sdcard: avoid duplicated code for --img-Xgb commandline options.

Drop deprecated $[...] (bash <2.0) notation in favor of $((...)).
Also add --img-8gb switch.

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>