super hacky barely functionv version of version control for images working