misc/image: fixed overwriting of correct visible dimensions

In some cases fmt_in already contains correct i_visible_width and i_visible_height values.
This patch fixes incorrect overwriting of valid values.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>