bug fix and
load the image only when it need