Add size limit to bitmap cache