added timer, resolve NPE in bitmap and scaling prob