Fixed syntax issue in tcpfilesocket, thumbnail creation and deletion working.