Function to diplay image as a thread in order to increase speed if possible.