code improved of load image