Double buffer and image loading issue fixed