further on tests, improved image scaling