GUI-1044: Properly handle direct image ID input