resize images; add return