add js hooks to image stat bars
make sure image stat bars update when image types are switched or images are deleted