updating script to properly display links/images