updated big time. scaling done with opencv now.