added free for bitmap layer