client image scaling worked out