new way to manage images

new way to manage images
it has bugs