use targetWidth and Height