some tweaks for wrapper module, added getfirstimage.php