add resize function to default loader