Fixed don't put image to js var when image empty