ui: (station-details) improve resize support
ui: improve image resize logic