resize and project