If is an image uploads it instead of its preview

Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>