adding img mode