fixes disappearing image bug for fancybox