added factory to store image list in a session