fixed bug in DrawImg to get main page working (KH)