scala script for resizing images added