moved bitmap conversion into main gui thread