restoring functionality (storing images is broken)