added stored image model and other changes
merging work