old functions fully restored for both image and map widgets