thanks to sachiel, the image updating bug is fixed