refactoring of image storage and carrier lib

needs further work with thumbnails(480) and a migration script