check svg size before creating a bitmap