template <class T>
auto CopyImageToWithPadding(const jxl::Rect& from_rect, const T& from, size_t padding, const jxl::Rect& to_rect, T* to) -> void