img_dump: Open the file in read-only instead of read-write

Signed-off-by: Tal Kain <tal.kain@ravellosystems.com>