switched to libswscale for scaling