add scale support to image transfomr