changed targetW and targetH