Terrible hacks for anti-aliased image scaling in flyingsaucer