fix a warning on get_images_from_post()
fixed some notices
added support for fancybox