fix bug for jquery ui that the image cannot be accessed