Solve The Problem when the element image hidden.