add bitmap cache and strictmode