implement js load image methods