working on persistent image storage