Fixed image scaling warnings.
Fixed deprecation warnings.