rename selected image and fix open book jugement