Let you convert any image size.(js version)