now it mostly works for remote imagelists bit local imagr lists still need fixing