Make `image_id_from_url` a static method. Closes #509