Added image scaling mode for better performance.