fix bug in images datepicker. Now the images can be viewed.