[fix] integrate and optimize sizeFromUrl