Fix preview image and creat image cache when image updated