fix fancy box bugs when showing image with blank