Performing bitmap tasks asynchronously and adjusting layout